
/**
 * JiuWu 95JW.CN
 */
    
const t="userPreferences";function c(){try{const e=sessionStorage.getItem(t);if(e)return JSON.parse(e)}catch(e){console.warn("Failed to parse user preferences:",e)}const r=sessionStorage.getItem("preferPc")==="true",s=sessionStorage.getItem("preferMobile")==="true";return{preferPc:r,preferMobile:s,autoRedirect:!0}}function n(r){const e={...c(),...r};try{sessionStorage.setItem(t,JSON.stringify(e)),sessionStorage.removeItem("preferPc"),sessionStorage.removeItem("preferMobile")}catch(o){console.warn("Failed to save user preferences:",o)}}function a(r){n({lastDeviceType:r})}export{c as g,a as r,n as s};
